auto.waitFor(); //等待申请无障碍权限
掘金签到()
function 掘金签到(){

let t = 100;
app.launchApp("稀土掘金");
log("等待左下角首页出现");
text("首页")
  .visibleToUser(true)
  .boundsInside(0, device.height / 2, device.width / 4, device.height)
  .waitFor();
sleep(t);
log("点击首页");
text("首页").findOne().parent().parent().click();
sleep(t);
log("点击右上角签到");
text("签到").findOne().parent().click();
sleep(t);
log("点击立即签到");
desc("立即签到").findOne().click();
sleep(t);
desc ("去抽奖").waitFor()
desc ("去抽奖").click();
click ("免费抽一次");
}

